/*
 * Copyright (c) JiaChaoYang 2024-5-30 MongoPlus版权所有
 * 适度编码益脑，沉迷编码伤身，合理安排时间，享受快乐生活。
 * email: j15030047216@163.com
 * phone: 15030047216
 * weChat: JiaChaoYang_
 */

package com.anwen.mongoa.config;

import com.anwen.mongo.handlers.TypeHandler;

public class ByteTypeHandler implements TypeHandler<Byte> {
    @Override
    public Object setParameter(String fieldName, Byte obj) {
        return null;
    }

    @Override
    public Byte getResult(Object obj) {
        return Byte.valueOf(String.valueOf(obj));
    }
}
